#region "DataObjectExtensions"

/*
 * ####     Developer Name : Wang Yucai
 * 
 * ####     Development Tool : Microsoft VisualStudio 2010 Ultimate Edition
 * 
 * ####     Create Time : 2014-07-15 14:45:22
 * 
 * ####     Namespace : System.Data
 * 
 * ####     Type Name : DataObjectExtensions
 * 
 * ####     Full Name : System.Data.DataObjectExtensions
 * 
 * ####     Machine Name : GLCHQWYCWINW7
 * 
 * ####     UserName : GUOCOLAND/wangyucai
 * 
 * ####     CLR Version : 4.0.30319.18444
 * 
 * ####     Target Framework Version : 4.0
 */

#endregion


namespace System.Data
{
    /// <summary>
    /// <para>System.Data.DataObjectExtensions</para>
    /// <para>
    /// 为<see cref="Object"/>的扩展方法。
    /// </para>
    /// </summary>
    /// <remarks>
    /// <para>Target Framework Version : 4.0</para>
    /// </remarks>
    public static class DataObjectExtensions
    {
        #region IsDBNull
        /// <summary>
        /// 验证<paramref name="current"/>是否等于<see cref="DBNull"/>。
        /// </summary>
        /// <param name="current"><see cref="Object"/>对象实例。</param>
        /// <returns>如果<paramref name="current"/>为空指针或等于<see cref="DBNull"/>则返回true；否则返回false。</returns>
        static public bool IsDBNull(this object current)
        {
            return current.IsNull() || current.Equals(DBNull.Value);
        }
        #endregion
    }
}

#region README

/*
 * ####     ©2014 Wang Yucai
 * 
 * ####     Contact me
 *                  
 *                  E-mail : Masterduner@Yeah.net
 *                  Mobile : 13621384677
 *                  QQ : 180261899
 */

#endregion